cmake_minimum_required(VERSION 3.3)
project(simple_webcam_service_multi)

set(CMAKE_CXX_STANDARD 11)

find_package(RobotRaconteur REQUIRED)
find_package(OpenCV REQUIRED)
find_package(drekar-launch-process-cpp CONFIG REQUIRED)

include_directories(${CMAKE_CURRENT_BINARY_DIR})

robotraconteur_generate_thunk(RR_THUNK_SRCS RR_THUNK_HDRS experimental.simplewebcam3.robdef MASTER_HEADER INCLUDE_DIRS
                              ${CMAKE_CURRENT_SOURCE_DIR}/../../robdef)

add_executable(simple_webcam_service_multi ${RR_THUNK_HDRS} ${RR_THUNK_SRCS} simple_webcam_service_multi.h
                                           simple_webcam_service_multi.cpp simple_webcam_impl.h simple_webcam_impl.cpp)

target_link_libraries(simple_webcam_service_multi opencv_core opencv_highgui RobotRaconteurCore
                      drekar-launch-process-cpp)

add_executable(simple_webcam_service ${RR_THUNK_HDRS} ${RR_THUNK_SRCS} simple_webcam_service.cpp simple_webcam_impl.h
                                     simple_webcam_impl.cpp)

target_link_libraries(simple_webcam_service opencv_core opencv_highgui RobotRaconteurCore drekar-launch-process-cpp)
